<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>我的订单</title>

    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/css/order.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap-iso.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/foot123.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/top123.css">
</head>
<body>
<div class="header">
    <%@include file="../common/top.jsp" %>
</div>
    <div class="div0">
        <div class="cart_img"></div>
        <p class="p1">我的订单</p>
        <div class="div1">
            &nbsp;&nbsp;您好呀！亲爱的海绵宝宝~~&nbsp;&nbsp;
        </div>
    </div>

    <div class="div2">
        <div class="div3">
            <table cellspacing="0">
                <thead class="thead">
                            <th>日期</th>
                            <th>订单号</th>
                            <th>金额</th>
                            <th>状态</th>
                            <th>详情</th>
                            <th>操作</th>
                        </thead>
                <tbody>
                        <c:forEach items="${requestScope.orders}" var="orders">
                            <tr>
                                <td>${orders.createTime}</td>
                                <td>${orders.orderId}</td>
                                <td>${orders.price}</td>
                                <c:if test="${orders.status==0}">
                                    <td>未配送</td>
                                </c:if>
                                <c:if test="${orders.status==1}">
                                    <td>已配送</td>
                                </c:if>
                                <c:if test="${orders.status==2}">
                                    <td>已完成</td>
                                </c:if>
                                <td><a href="${pageContext.request.contextPath}/manager123/checkorder/${orders.orderId}">查看详情</a></td>
                                <td>
                                <c:if test="${orders.status==1}">
                                    <a href="${pageContext.request.contextPath}/user123/receiverOrder/${orders.orderId}">签收订单</a>
                                </c:if>
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
            </table>
        </div>
    </div>

    <div class="div6">
        蟹堡王餐厅.Krusty Krab @2021
    </div>
    <%@include file="../common/foot.jsp"%>
</body>
</html>